package com.yida.common.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @Description 拉取厂商数据请求参数
 * @Author wws
 * @Date 2023-03-27
 */
@ApiModel("拉取厂商数据请求参数")
public class PullCompanyDataRequest {


	@ApiModelProperty("厂商对接接口配置主键")
	@NotNull(message = "厂商对接接口配置主键不能为空")
	private Long dockingInterfaceConfigId;

	@ApiModelProperty("请求参数")
	@NotNull(message = "请求参数不能为空")
	private Map<String, Object> requestParams;

	@ApiModelProperty("厂商主键")
	@NotNull(message = "厂商主键不能为空")
	private Long companyId;

	@ApiModelProperty("请求标识")
	@NotNull(message = "请求标识不能为空")
	private String requestFlag;

	public Long getDockingInterfaceConfigId() {
		return dockingInterfaceConfigId;
	}

	public void setDockingInterfaceConfigId(Long dockingInterfaceConfigId) {
		this.dockingInterfaceConfigId = dockingInterfaceConfigId;
	}

	public Map<String, Object> getRequestParams() {
		return requestParams;
	}

	public void setRequestParams(Map<String, Object> requestParams) {
		this.requestParams = requestParams;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public String getRequestFlag() {
		return requestFlag;
	}

	public void setRequestFlag(String requestFlag) {
		this.requestFlag = requestFlag;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("PullCompanyDataRequest{");
		sb.append("dockingInterfaceConfigId=").append(dockingInterfaceConfigId);
		sb.append(", requestParams=").append(requestParams);
		sb.append(", companyId=").append(companyId);
		sb.append(", requestFlag='").append(requestFlag).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
